package com.umakr.demo.service;

import com.umakr.demo.mapper.BanjiMapper;
import com.umakr.demo.model.Banji;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/18.
 */
@Service
public class BanjiSerivice {
    @Autowired
    BanjiMapper banjiMapper;

    public List showAll(){
     return banjiMapper.showAll();
    }



    public  void saveBanji(Banji banji){
        banjiMapper.saveBanji(banji);
    }

    public void updataBanji(Banji banji){
        banjiMapper.updataBanji(banji);
    }
    public void deleteBanji(Banji banji){
        banjiMapper.deleteBanji(banji);
    }

}
